fix app filepath detection