Fixed working directory transversal and filename purpose.