Fix bugs in path preventing compiled app from running