Use pwd to fix compilation errors
Check if Makefile exists
Revert "Check if Makefile exists"

This reverts commit 0fff50dbc06e6cbc673b724daa2a50704dfe94c9.
Revert "Use pwd to fix compilation errors"

This reverts commit 9411b5673eeb3cc97125af489f90b33b14fb5739.