Fix sampgdk_make_output_dir()

Get relative path to the file depending on whether it is located
in the source tree or the build directory. When the relative path
is known, it's pretty easy to get the final directory - just append
${CMAKE_CURRENT_BINARY_DIR} to it.