think it should be ./giana instead of just giana (last line) and perhaps you could try using an absolute path not sure about the cd error. Rather weird that it does not work in emulation station.
hmm one more thing i can think of is that emulation station is logged in with a diffrent user hence not finding the directory? using an absolute path should fix it then though. Although i always thought there was just one user, just don’t know if emulation station is started as the user pi