Application folder not being found correctly so trying sed