Added resources directory to build script
Fixed unqualified access warning
Added logic to exit alternative